package com.sky.demo.entity;

import org.realogic.cfm.domain.KEntity;

/**
 * 单实体-实体对象
 */
public class EntityOne implements KEntity {

	private static final long serialVersionUID = 1166772877288622898L;
	// ID
	private Long id;
	// 编号
	private String code;
	// 字符型
	private String stringx;
	// 整数型
	private int intx;
	// 长整数型
	private long longx;
	// 双精度型
	private double doublex;
	// 日期型
	private java.sql.Date datex;
	// 长日期型
	private java.sql.Timestamp datetimex;
	// 时间型
	private java.sql.Time timex;
	// 是否选择
	private boolean yesno;
	// 结束标志
	private boolean finishedflag;
	// 产品ID
	private Long productID;
	// 产品名称
	private String productName;
	// 排序号
	private int sort;
	// 创建者
	private String createdBy;
	// 创建日期
	private java.sql.Timestamp createdOn;
	// 创建者ID
	private String createdID;
	// 修改者
	private String updatedBy;
	// 最近修改日期
	private java.sql.Timestamp updatedOn;
	// 修改者ID
	private String updatedID;
	// 审核者
	private String approvedBy;
	// 审核时间
	private java.sql.Timestamp approvedOn;
	// 审核者ID
	private String approvedID;

	public EntityOne() {

	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long aId) {
		this.id = aId;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String aCode) {
		this.code = aCode;
	}

	public String getStringx() {
		return this.stringx;
	}

	public void setStringx(String aStringx) {
		this.stringx = aStringx;
	}

	public int getIntx() {
		return this.intx;
	}

	public void setIntx(int aIntx) {
		this.intx = aIntx;
	}

	public long getLongx() {
		return this.longx;
	}

	public void setLongx(long aLongx) {
		this.longx = aLongx;
	}

	public double getDoublex() {
		return this.doublex;
	}

	public void setDoublex(double aDoublex) {
		this.doublex = aDoublex;
	}

	public java.sql.Date getDatex() {
		return this.datex;
	}

	public void setDatex(java.sql.Date aDatex) {
		this.datex = aDatex;
	}

	public java.sql.Timestamp getDatetimex() {
		return this.datetimex;
	}

	public void setDatetimex(java.sql.Timestamp aDatetimex) {
		this.datetimex = aDatetimex;
	}

	public java.sql.Time getTimex() {
		return this.timex;
	}

	public void setTimex(java.sql.Time aTimex) {
		this.timex = aTimex;
	}

	public boolean isYesno() {
		return this.yesno;
	}

	public void setYesno(boolean aYesno) {
		this.yesno = aYesno;
	}

	public boolean isFinishedflag() {
		return this.finishedflag;
	}

	public void setFinishedflag(boolean aFinishedflag) {
		this.finishedflag = aFinishedflag;
	}

	public Long getProductID() {
		return this.productID;
	}

	public void setProductID(Long aProductID) {
		this.productID = aProductID;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String aProductName) {
		this.productName = aProductName;
	}

	public int getSort() {
		return this.sort;
	}

	public void setSort(int aSort) {
		this.sort = aSort;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String aCreatedBy) {
		this.createdBy = aCreatedBy;
	}

	public java.sql.Timestamp getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(java.sql.Timestamp aCreatedOn) {
		this.createdOn = aCreatedOn;
	}

	public String getCreatedID() {
		return this.createdID;
	}

	public void setCreatedID(String aCreatedID) {
		this.createdID = aCreatedID;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String aUpdatedBy) {
		this.updatedBy = aUpdatedBy;
	}

	public java.sql.Timestamp getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(java.sql.Timestamp aUpdatedOn) {
		this.updatedOn = aUpdatedOn;
	}

	public String getUpdatedID() {
		return this.updatedID;
	}

	public void setUpdatedID(String aUpdatedID) {
		this.updatedID = aUpdatedID;
	}

	public String getApprovedBy() {
		return this.approvedBy;
	}

	public void setApprovedBy(String aApprovedBy) {
		this.approvedBy = aApprovedBy;
	}

	public java.sql.Timestamp getApprovedOn() {
		return this.approvedOn;
	}

	public void setApprovedOn(java.sql.Timestamp aApprovedOn) {
		this.approvedOn = aApprovedOn;
	}

	public String getApprovedID() {
		return this.approvedID;
	}

	public void setApprovedID(String aApprovedID) {
		this.approvedID = aApprovedID;
	}

	public String toString() {
		StringBuffer returnString = new StringBuffer();
		returnString.append("com.sky.demo.entity.EntityOne[");
		returnString.append("id = " + this.id + ";\n");
		returnString.append("code = " + this.code + ";\n");
		returnString.append("stringx = " + this.stringx + ";\n");
		returnString.append("intx = " + this.intx + ";\n");
		returnString.append("longx = " + this.longx + ";\n");
		returnString.append("doublex = " + this.doublex + ";\n");
		returnString.append("datex = " + this.datex + ";\n");
		returnString.append("datetimex = " + this.datetimex + ";\n");
		returnString.append("timex = " + this.timex + ";\n");
		returnString.append("yesno = " + this.yesno + ";\n");
		returnString.append("finishedflag = " + this.finishedflag + ";\n");
		returnString.append("productID = " + this.productID + ";\n");
		returnString.append("productName = " + this.productName + ";\n");
		returnString.append("sort = " + this.sort + ";\n");
		returnString.append("createdBy = " + this.createdBy + ";\n");
		returnString.append("createdOn = " + this.createdOn + ";\n");
		returnString.append("createdID = " + this.createdID + ";\n");
		returnString.append("updatedBy = " + this.updatedBy + ";\n");
		returnString.append("updatedOn = " + this.updatedOn + ";\n");
		returnString.append("updatedID = " + this.updatedID + ";\n");
		returnString.append("approvedBy = " + this.approvedBy + ";\n");
		returnString.append("approvedOn = " + this.approvedOn + ";\n");
		returnString.append("approvedID = " + this.approvedID + ";\n");
		returnString.append("]\n");
		return returnString.toString();
	}

	/******************* 辅助方法 *******************/
	/*
	 * 实体Key字符
	 */
	public String getKey() {
		if (id == null || id == 0) {
			return null;
		} else {
			return String.valueOf(id);
		}
	}
}